package com.demo.controller;


import com.demo.entity.Area;
import com.demo.entity.base.Result;
import com.demo.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Ymj
 * @since 2020-11-23
 */
@RestController
@CrossOrigin
@RequestMapping("/demo/area")
public class AreaController extends BaseController<Area, AreaService> {

    private AreaService areaService;
    @Autowired
    public void setAreaService(AreaService areaService){

        this.areaService = areaService;
        this.manager = this.areaService;
    }
}

